package org.ruoyi.ppt.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *
 *
 * @author anran
 * @date 2025/9/30/周二 14:55
 */
@Data
@TableName("ppt_results")   // ← 对应数据库表
public class PptResult implements Serializable {

    @TableId(value = "id", type = IdType.INPUT) // 业务 UUID，自己传
    private String id;

    @TableField("ppt_title")
    private String pptTitle;

    @TableField("introduce")
    private String introduce;

    @TableField("page_count")
    private Integer pageCount;

    @TableField("progress")
    private Integer progress;

    @TableField("status")
    private Integer status;

    @TableField("note_status")
    private Integer noteStatus;

    @TableField("first_image_up_at")
    private LocalDateTime firstImageUpAt;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @TableField("state_description")
    private String stateDescription;

    @TableField("process_url")
    private String processUrl;

    @TableField("preview_url")
    private String previewUrl;

    @TableField("preview_image")
    private String previewImage;

    // 如果临时想挂图片列表，标记非数据库字段
    // @TableField(exist = false)
    // private List<PptImage> images;
}
